package modules.container
{
	import mx.containers.ViewStack;
	import mx.controls.TabBar;
	
	public class ViewStackFixed extends ViewStack
	{
		/**
		 *  Constructor.
		 */
		public function ViewStackFixed()
		{
			super();
		}

		override protected function commitSelectedIndex(newIndex:int):void
		{
			super.commitSelectedIndex(newIndex);
/*			if(TabBar.numChildren > 0)
			{
				// Select the corresponding Tab in the Tab Bar (this  fixes a bug in Flex)
				tabBar.selectedIndex = newIndex;
			}
*/		}
	}
}